using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
using SageKing.Desktop.Features.ControlsLibrary.LeftMenu;

namespace SageKing.Desktop;

public partial class LeftMenuView : UserControl
{
     

    public LeftMenuViewModel VM
    {
        get
        {
            return this.DataContext as LeftMenuViewModel;
        }
    }

    public LeftMenuView()
    {
        InitializeComponent();

        if (this.DataContext == null)
        {
            this.DataContext = new LeftMenuViewModel();
        }

        VM?.InitMenu(MenuRoot);
    }

    


}